<%--
 *  File:    ApprovalNotesSummary.jsp
 *  @Author: CunZhang 
 *  Date:    2002/02/27
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.UserGroupSummary"); 
%>

<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "BIEE";
%>



<%//--------------------------------------  include files list --%>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>ApprovalNotesSummary</title>
<PageFlow:CheckPageFlow pageName="approvalnotessummary"/>
<%@ include file="/inc/InitEdit.inc" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="../js/FuncLib.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<script>
<%--[SCRIPT]  parent.down.location = "about:blank";  [SCRIPT]--%>
function setValue(obj)
{
	if(obj==null) return;
	if(obj.checked)
		obj.value = "Y";
	else
		obj.value = "N";
}

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(approvalnotessummaryform,actionvalue,orderbyname);
  editform.action = "ApprovalNotesSummary.jsp?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}

function page_back()
{
   strPage = "../masterdata/upm/RegSummary.jsp?<%= OvalTools.randomURL() %>&languagecode=<%=strLanguageCode%>"
   parent.down.location = "about:blank";
   parent.up.location = strPage;
}


</script>
<%
  Vector notesSummary = (Vector)pageContext.getAttribute("notessummary");
  String strTransactionid = new String(pageContext.getAttribute("transactionid") + "");
  String strSubjectcode = (String) pageContext.getAttribute("subjectcode");
  String strTransactioncode = (String) pageContext.getAttribute("transactioncode");

  if(notesSummary == null)
  {
    notesSummary = new Vector();
  }
%>
</head>
	
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="approvalnotessummaryform" method="post" action="../Dispatcher" target="_parent">
     <input type="hidden" name="pagename" value="approvalnotessummary">
     <input type="hidden" name="actionname"> 
     <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">
     <input type="hidden" name="transactionid" value="<%=JspHelper.filterNull( strTransactionid )%>"> 
     <input type="hidden" name="subjectcode" value="<%=JspHelper.filterNull( strSubjectcode )%>">
     <input type="hidden" name="transactioncode" value="<%=JspHelper.filterNull( strTransactioncode )%>">    
<% //--------------------------------------  page location --%>
<%@ include file="/inc/PageLocation.inc" %>
	<table width="100%" cellspacing="0" border="0" cellpadding="0">
	  <tr> 
	    <td> 
	      <table width="100%" border="0" cellspacing="0">
	        <tr> 
	          <td class="summary_top" ></td>
	        </tr>
	        <tr> 
	          <td class="b">&nbsp; <%= label.getLabelName("L_SlipCode") +  label.getLabelName("L_Colon") %><%=JspHelper.filterNull( request.getParameter("notesid") )%><%=JspHelper.filterNull( strTransactioncode)%></td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	  <tr> 
	    <td> 
	      <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
        <tr class="deepblue-left"> 
	            <td class="title_center"><%= label.getLabelName("L_Title") %></td>
	            <td class="title_center"><%= label.getLabelName("L_Resource") %></td>
	            <td width="70" class="title_center"><%= label.getLabelName("L_BuildDate") %></td>
	          </tr>
	          <%
	            int i = 0;
	            String strClassType = new String();   
	          %>
	          <logic:iterate id="notes" collection="<%= notesSummary %>">                      
	          <%
	            HashMap notesMap = (HashMap)pageContext.getAttribute("notes"); 
	            if(i%2 == 1)
	            {
	              strClassType = "td-listrom";
	            }else{                    
	              strClassType = "";
	            }       
	            i++;        
	          %>
	          <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>"> 
	            <td >&nbsp;<a href="ApprovalNotesInfo.jsp?<%= OvalTools.randomURL() %>&notesid=<%=JspHelper.filterNull( notesMap.get("notesid") )%>" class="hand" target="down"><%=JspHelper.filterNull( notesMap.get("title") )%></a> </td>
	            <td>&nbsp;<%=JspHelper.filterNull( notesMap.get("fromusername") )%></td>
	            <td>&nbsp;<%=JspHelper.filterNull( notesMap.get("begindate") )%></td>
		  </tr>
		  </logic:iterate>
		  <tr align="right"> 
	            <td colspan="7"> 
			<%@ include file="/inc/SummaryAction.inc" %>
	            </td>
	          </tr>
	      </table>
	    </td>
	  </tr>
	  
	  <tr> 
	    <td> 
	      <table width="100%" border="0" cellspacing="0">
	        <tr> 
	          <td class="summary_top" ></td>
	        </tr>
	        <tr> 
	          <td class=td_center>       
          			<a onclick="parent.history.go(-1);"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a>       
        		</td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	  
	</table>
</form>  
</body>
</html>


